<?php

class LearningController extends Zend_Controller_Action
{
    public function indexAction()
    {
        $auth = Zend_Auth::getInstance();
        if(!Zend_Auth::getInstance()->hasIdentity()) {
            // vispirms jāielogojas
            $this->_redirect('/auth/login/message/'.urlencode('Apmācību var veikt tikai autorizēts lietotājs'));
        }
        $user = $auth->getIdentity();

        $this->view->courses = array();
    }

}

